import request, { Res } from '@/utils/request'

export function sendChat(word: string) {
  return request
    .post<Res<string>>('/chat', {
      word,
    })
    .then((res) => res.data)
}
